package org.zebra.tenant;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.zebra.satoken.LoginUser;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class TenantLoginUser<TENANT_TYPE, USER_TYPE> extends LoginUser<USER_TYPE> implements Serializable {

    private TENANT_TYPE tenantId;

    public TenantLoginUser(TENANT_TYPE tenantId, USER_TYPE userId, String userName, String deviceType, int userType) {
        super(userId, userName, deviceType, userType);
        this.tenantId = tenantId;
    }
}
